<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
	<jsp:include page="/WEB-INF/views/title.jsp" />
</title>
<jsp:include page="/WEB-INF/views/head.jsp" />
</head>
<body>
	<jsp:include page="/WEB-INF/views/common/message.jsp"></jsp:include>
	<div class="well bordered-top bordered-sky">
		<div>
			<form action="/admin/dashboard/password_update" class="form-horizontal form-bordered" role="form" method="post" 
				data-bv-message="验证未通过"
				data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
				data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
				data-bv-feedbackicons-validating="glyphicon glyphicon-refresh">
				<div class="form-group">
					<label for="oldPassword" class="col-sm-2 control-label no-padding-right">原密码</label>
					<div class="col-sm-4">
						<input type="password" class="form-control" id="oldPassword" name="oldPassword" placeholder="原密码">
					</div>
				</div>
				<div class="form-group">
					<label for="password" class="col-sm-2 control-label no-padding-right">新密码</label>
					<div class="col-sm-4">
						<input type="password" class="form-control" id="password" name="password" placeholder="新密码" 
							data-bv-different="true"
							data-bv-different-field="oldPassword"
							data-bv-different-message="新密码不能和旧密码相同">
					</div>
				</div>
				<div class="form-group">
					<label for="repeatPassword" class="col-sm-2 control-label no-padding-right">重复密码</label>
					<div class="col-sm-4">
						<input type="password" class="form-control" id="repeatPassword" name="repeatPassword" placeholder="重复密码" 
							data-bv-identical="true"
							data-bv-identical-field="password"
							data-bv-identical-message="两次输入的密码不相同">
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-2 col-sm-4">
						<button type="submit" class="btn btn-palegreen">保存</button>
					</div>
				</div>
			</form>
		</div>
	</div>
	<jsp:include page="/WEB-INF/views/script.jsp" />
   	<script src="${ctx}/static/beyond/js/validation/bootstrapValidator.js"></script>
   	<script type="text/javascript">
   		$(function(){
	   		$("form").bootstrapValidator();
   		});
   	</script>
</body>
</html>
